home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sprite 1984 - 1993
/
Sprite 1984 - 1993.iso
/
man
/
cmds.fmt
/
mt.man
< prev
next >
Wrap
Text File
|
1992-05-18
|
4KB
|
133 lines
MT User Commands MT
NNAAMMEE
mt - magnetic tape control
SSYYNNOOPPSSIISS
mmtt [ --ff _t_a_p_e_n_a_m_e ] _c_o_m_m_a_n_d [ _c_o_u_n_t ]
DDEESSCCRRIIPPTTIIOONN
mmtt sends commands to a magnetic tape drive. If _t_a_p_e_n_a_m_e is
not specified, the environment variable is used. If does
not exist, mmtt uses the device //ddeevv//rrmmtt1122. _t_a_p_e_n_a_m_e refers
to a raw tape device. By default, mmtt performs the requested
operation once; multiple operations may be performed by
specifying _c_o_u_n_t.
The available commands are listed below. Only as many char-
acters as are required to uniquely identify a command need
be specified.
mmtt returns a 0 exit status when the operation(s) were suc-
cessful, 1 if the command was unrecognized or if mmtt was
unable to open the specified tape drive, and 2 if an opera-
tion failed.
OOPPTTIIOONNSS
eeooff, wweeooff Write _c_o_u_n_t EOF marks at the current position
on the tape.
ffssff Forward space over _c_o_u_n_t EOF marks. The tape is
positioned on the first block of the file.
ffssrr Forward space _c_o_u_n_t records.
bbssff Back space over _c_o_u_n_t EOF marks. The tape is
positioned on the beginning-of-tape side of the
EOF mark.
bbssrr Back space _c_o_u_n_t records.
nnbbssff Back space _c_o_u_n_t files. The tape is positioned
on the first block of the file. This is
equivalent to _c_o_u_n_t+_1 bbssff's followed by one
ffssff.
aassff Absolute space to _c_o_u_n_t file number. This is
equivalent to a rreewwiinndd followed by a ffssff _c_o_u_n_t.
For the following commands, _c_o_u_n_t is ignored:
eeoomm Space to the end of recorded media on the tape.
This is useful for appending files onto previ-
ously written tapes.
Sprite v1.0 19 December 1989 1
MT User Commands MT
rreewwiinndd Rewind the tape.
oofffflliinnee, rreewwooffffll
Rewind the tape and, if appropriate, take the
drive unit off-line by unloading the tape.
ssttaattuuss Print status information about the tape unit.
rreetteennssiioonn Rewind the cartridge tape completely, then wind
it forward to the end of the reel and back to
beginning-of-tape to smooth out tape tension.
eerraassee Erase the entire tape.
FFIILLEESS
//ddeevv//rrmmtt** magnetic tape interface
//ddeevv//rraarr** Archive cartridge tape interface
//ddeevv//rrsstt** SCSI tape interface
SSEEEE AALLSSOO
aarr(4S), mmttiioo(4), sstt(4S), ttmm(4S), xxtt(4S) eennvviirroonn(5V)
BBUUGGSS
Not all devices support all options. Some options are
hardware-dependent. Refer to the corresponding device
manual page.
WWAARRNNIINNGGSS
The bbssff option for SCSI tape in SunOS 4.0.3 is incompatible
with this release and releases prior to 4.0.3.
Sprite v1.0 19 December 1989 2